package com.jsy.mini12306.manage.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.jsy.mini12306.common.entity.Station;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author: SongyangJi
 * @description:
 * @since: 2021/9/3
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class StationExcel implements Serializable {
    /**
     * 车站id (自增)
     */
    private Integer stationId;
    /**
     * 车站名
     */
    @ExcelProperty(index = 0)
    private String stationName;
    /**
     * 所在城市
     */
    @ExcelProperty(index = 2)
    private String city;
    /**
     * 地址
     */
    @ExcelProperty(index = 3)
    private String address;
    /**
     * 拼音
     */
    @ExcelProperty(index = 1)
    private String alphabetical;

    public Station wrapper() {
        return new Station(null, stationName, city, address, alphabetical);
    }

}
